package com.example.environment.controller;

import com.example.environment.service.ProvinceService;
import com.example.environment.tools.common.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/province")
public class ProvinceController {

    @Autowired
    private ProvinceService provinceService;
    @GetMapping("/getAllProvince")
    public ResultMsg getAllProvince(){
        return provinceService.getAllProvince();
    }
}
